package cool.tianyou.blue.bird.model;

import java.util.Date;

public class Device {
    private Integer id;
    private String publicKey;
    private String token;
    private String deviceName;
    private Boolean  disabled;
    private Date lastLoginTime;
    private Integer userId;
    private boolean online;
    private String alias;
    private String  type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public boolean isOnLine() {
        return online;
    }

    @Override
    public String toString() {
        return "Device{" +
                "id=" + id +
                ", publicKey='" + publicKey + '\'' +
                ", token='" + token + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", disabled=" + disabled +
                ", lastLoginTime=" + lastLoginTime +
                ", userId=" + userId +
                ", onLine=" + online +
                '}';
    }

    public void setOnLine(boolean onLine) {
        this.online = onLine;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
